import wepy from 'wepy'

export const getPush = () => wepy.request('/user/myPush')

export const getNewComments = ( page ) => wepy.request({
  method: 'GET',
  url: '/user/myComment',
  data:{
    all:1,
    page,
    size:10
  }
})

export const getFirstNewComments = () => wepy.request('/user/myComment')

export const getLikeMoments = ( page ) => wepy.request({
  method: 'GET',
  url: '/user/myLike',
  data:{
    all:1,
    page,
    size:10
  }
})

export const getFirstLikeMoments = () => wepy.request('/user/myLike')

export const getPushNews = data => wepy.request({
  method: 'POST',
  url: '/user/updatePush',
  data
})
